<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>查看代码内容</title>
        <link href="<?php echo base_url(); ?>CSS/WebPages.css" rel="stylesheet" type="text/css">
        <link href="<?php echo base_url(); ?>CSS/GLOBAL.css" rel="stylesheet" type="text/css">

        <link href="<?php echo base_url(); ?>CSS/styles/shCore.css" type="text/css" rel="stylesheet"/>
        <link href="<?php echo base_url(); ?>CSS/styles/shThemeDefault.css" type="text/css" rel="stylesheet"/>

        <script type="text/javascript" src="<?php echo base_url(); ?>JS/scripts/shCore.js"></script>
    </head>
    <body>
        <div id="CONTAINER" class="Box">
            <div id="Main">
                <div id="Position">
                    代码库分类：
                    <?php
                    if (is_array($category)) {
                        foreach ($category as $category_item) {
                            ?>
                            <a href="<?php echo site_url(); ?>/Code/Select_Category/<?php echo $category_item['Cate_Id'] ?>"><?php echo $category_item['Cate_Name'] ?></a>&nbsp;&nbsp;
                            <?php
                        }
                    }
                    ?>
                </div>
                <?php
                if (is_array($code)) {
                    foreach ($code as $code_item) {
                        ?>
                        <div id="DetailArea">
                            <h3>
                                <?php echo $code_item['C_Title'] ?>
                            </h3>
                            <div class="detail">
                                <?php echo $code_item['C_Description'] ?>
                            </div>
                            <h2>代码正文</h2>
                        </div>
                        <div id="codeArea" class="codeArea">
                            <pre class="brush: <?php echo $code_item['Cate_Aliases'] ?>"><?php echo $code_item['C_CodeContent'] ?></pre>
                        </div>

                        <?php
                    }
                }
                ?>
            </div>
        </div>
    </body>
    
        <script type="text/javascript" src="<?php echo base_url(); ?>JS/scripts/<?php echo $code_item['Cate_FileName'] ?>"></script>
        <script type="text/javascript">
            SyntaxHighlighter.all()
        </script>
</html>
